    <script type="text/javascript">
        $(function () {
            $('.form_datetime').datetimepicker({
                language: 'zh-CN',
                weekStart: 1,
                todayBtn: 1,
                autoclose: 1,
                todayHighlight: 1,
                startView: 2,
                forceParse: 0,
                showMeridian: 1,
                minuteStep: 1
            });
        });


        $('.refund_status').change(function () {
            var sel_status = $(this).val();
            if (sel_status == 2) {
                $('#complete_time').show();
            } else {
                $('#complete_time').hide();
            }
        });


        $('#refunds_xls').on('click', function () {
            //var url = $(this).data('link');
            var url = '{{route('admin.refund.getExportData')}}';
            var type = $(this).data('type');

            var refund_status = $('.refund_status').val();
            var stime = $('input[name="stime"]').val();
            var etime = $('input[name="etime"]').val();
            var c_stime = '';
            var c_etime = '';

            if (refund_status == 2) {
                c_stime = $('input[name="c_stime"]').val();
                c_etime = $('input[name="c_etime"]').val();
            }


            url = url + '?type=' + type + '&refund_status=' + refund_status + '&stime=' + stime + '&etime=' + etime + '&c_stime=' + c_stime + '&c_etime=' + c_etime;

            $(this).data('link', url);
        });
    </script>